package com.kira.solo.schedule

import android.content.Context
import dagger.hilt.android.EntryPointAccessors

/**
 *
 * @packageName com.kira.solo.schedule
 * @date 2024/1/29 13:50
 * @author zhanglei
 */
object ScheduleInstance {
    /**
     * 应用启动时调用
     */
    fun init(context: Context) {
        val hiltEntryPoint =
            EntryPointAccessors.fromApplication(context, ScheduleModuleEntryPoint::class.java)
        val scheduleStarter = hiltEntryPoint.scheduleStarter()
        // 启动定时
        scheduleStarter()
    }
}